package com.atguigu.springcloud.mapper;

import com.atguigu.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 默苍璃
 * @date: 2021-12-31 17:29
 */
@Mapper
public interface OrderDao {

    /**
     * 1 新建订单
     *
     * @param order
     */
    void create(Order order);


    /**
     * 修改订单状态，从零改为1
     *
     * @param userId
     * @param status
     */
    void update(@Param("userId") Long userId, @Param("status") Integer status);

}